package com.ruoyi.iot.domain;

import java.io.Serializable;
import java.util.Date;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
* 设备分组
*/
@Data
public class DeviceGroup  implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long id;

    @NotBlank(message = "分组名称不能为空")
    private String name;

    private String description;

    private Date createTime;

    private Long parentId;

    private Long createBy;

    /**
     * 部门id，属性展示设备到组织机构下面
     */
    private Long deptId;

    /**
     * 乐观锁版本号
     */
    private Long  version;
}